package com.yiwei.jmx.api.bean;

import android.text.TextUtils;

import com.yiwei.jmx.util.ToastUtil;

import java.util.List;

/**
 * Created by xsooy-pc on 18-10-29.
 */

public class DealApplyBean {

    /**
     * company_id : 100
     * money : 100
     * day : 7
     * use_typeid : 1
     * use_desc : 买iPhonex缺100块
     * use_photos : ["https://www.1.com","https://www.1.com","https://www.1.com"]
     * bankcard_id : 161
     */

    public String company_id;
    public String money;
    public String day;
    public String use_typeid;
    public String channel_id;
    public String use_desc;
    public String bankcard_id;
    public List<String> use_photos;

    public boolean checkAll() {
        if (TextUtils.isEmpty(money)) {
            ToastUtil.makeTipsText("借款金额不能为空");
            return false;
        }
        if (TextUtils.isEmpty(day)) {
            ToastUtil.makeTipsText("借款日期不能为空");
            return false;
        }
        if (TextUtils.isEmpty(use_typeid)) {
            ToastUtil.makeTipsText("借款用途不能为空");
            return false;
        }
        if (TextUtils.isEmpty(bankcard_id)) {
            ToastUtil.makeTipsText("收款银行卡不能为空");
            return false;
        }
        return true;
    }
}
